//
//  NSBundle+CCFoundation.h
//  CCFoundation
//
//  Created by zjh on 2021/8/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

static inline UIImage* getFoundationImage(NSString *name) {
    NSBundle *toolBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:NSClassFromString(@"CCNavigationController")] pathForResource:@"CCFoundationSources" ofType:@"bundle"]];
    return [UIImage imageNamed:name inBundle:toolBundle compatibleWithTraitCollection:nil];
}

@interface NSBundle (CCFoundation)
+ (instancetype)cc_Bundle;
@end

NS_ASSUME_NONNULL_END
